package cn.edu.tju.elm.dto;

public class CartItemDto {

    private FoodIdDto food;

    private Integer quantity;

    // --- Getters and Setters ---
    public FoodIdDto getFood() { return food; }
    public void setFood(FoodIdDto food) { this.food = food; }
    public Integer getQuantity() { return quantity; }
    public void setQuantity(Integer quantity) { this.quantity = quantity; }

    public static class FoodIdDto {
        private Long id;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }
    }
}